# Python内一切皆是对象
# 组成对象的三部分
# 1. id (唯一标识)
# 2. type (数据类型)
# 3. value (值)

# a = 10
# print(id(a))
# print(type(a))
# print(a)
#
# b = 10
# print(id(b))
# print(type(b))
# print(b)

# 同一运算符（is 和 ==）
# is 比较的是两个对象的id是否相同
# boy1 = 2800
# boy2 = 2800
# print(id(boy1))
# print(id(boy2))
# print(boy1 is boy2) # True

# # == 比较的是两个对象的值是否相同
# def theBoy(num):
#     result = num + 1
#     return result
#
# boy1 = 2800
# boy2 = theBoy(2799)
#
# print(id(boy1))
# print(id(boy2))
#
# print(boy2)
#
# print(boy1 == boy2) # True
#
# print(boy1 is boy2) # False
